package com.health.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.health.pojo.domain.ConsultationDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
@Mapper
public interface ConsultationMapper extends BaseMapper<ConsultationDO> {
    @Update("UPDATE consultations SET ended_at = NOW() WHERE consultation_id = #{consultationId}")
    int updateEndedAt(Integer consultationId);

}
